<template>
  <div>
    <el-container>
      <el-aside width="65px" style="background-color: #344363; height: 100vh; padding: 3px">
        <div class="userName" @click="doctorData"><span>名字</span></div>
        <!-- 医生信息卡片 -->
        <div class="doctorData">
          <!-- 医生主要信息 -->
          <div class="doctorPerson">
            <img
              src="https://bkimg.cdn.bcebos.com/pic/902397dda144ad344256fd84d3a20cf430ad85c3?x-bce-process=image/resize,m_lfit,w_536,limit_1/format,f_auto"
              alt="">
            <div>
              <b>医生姓名</b>
              <span>医生职务</span>
              <p>健康无忧人民医院</p>
            </div>
          </div>
          <!-- 排班状态 -->
          <div>
            <span>坐诊</span>
            <el-input placeholder="请输入您的状态"></el-input>
          </div>
          <!-- 排班信息 -->
          <el-calendar style="height: 400px;" v-model="value">

          </el-calendar>

        </div>
        <el-menu router :default-active="activeName" background-color="#344363" text-color="#E6E6E6"
          active-text-color="#6D96FC">
          <el-menu-item to="/home/inquiry" index="/home/inquiry">
            <i class="el-icon-office-building" style="display: block"></i>
            <span slot="title">问诊</span>
          </el-menu-item>

          <el-menu-item index="/home/cloudMedical">
            <i class="el-icon-notebook-1" style="display: block"></i>
            <span slot="title">云病历</span>
          </el-menu-item>

          <el-menu-item index="/home/patient">
            <i class="el-icon-s-custom" style="display: block"></i>
            <span slot="title">患者</span>
          </el-menu-item>

          <el-menu-item index="/home/workbench">
            <i class="el-icon-receiving" style="display: block"></i>
            <span slot="title">工作台</span>
          </el-menu-item>

          <el-menu-item index="/home/knowledgeBase">
            <i class="el-icon-collection" style="display: block"></i>
            <span slot="title">知识库</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-container>
        <el-header style="height: 55px; background-color: #344363; position: relative;min-width:700px">
          <el-input style="
              width: 460px;
              position: absolute;
              left: 0;
              top: 5px;
              background-color: #344363;
            " placeholder="刷卡搜索" prefix-icon="el-icon-search">
          </el-input>
          <i class="el-icon-s-open" style="
              position: absolute;
              right: 450px;
              top: 10px;
              cursor: pointer;
              color: white;
              font-size: 24px;
            ">换肤</i>
          <div class="header-right">
            <img width="160px" src="https://cdn7.axureshop.com/demo/1968629/images/%E9%97%AE%E8%AF%8A/logo_u1534.png"
              alt="" />
            <span>五官科门诊</span>
            <el-button type="primary">切换</el-button>
          </div>
        </el-header>
        <el-main>
          <!-- 二级路由占位符 -->
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeName: '/home/inquiry',
      value: new Date(),
    };
  },
  methods: {
    doctorData() {

    }
  },
};
</script>

<style lang="scss" scoped>
.doctorData {
  width: 330px;
  position: absolute;
  left: 80px;
  top: 60px;
  z-index: 10000;
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;

  >div.doctorPerson {
    display: flex;
    margin-bottom: 10px;
    background-color: #2A8CFF;
    padding: 10px;

    img {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      border: 3px solid #fff;
    }

    >div {
      margin-top: 10px;
      display: flex;
      flex-direction: column;
      align-items: start;
      color: #fff;
      margin-left: 10px;

      b {
        font-size: large;
        font-weight: bold;
        margin-bottom: 10px;
      }
    }
  }
}

.header-right {
  padding: 5px;
  width: 400px;
  height: 40px;
  position: absolute;
  right: 50px;

  img {
    vertical-align: middle;
  }

  span {
    display: inline-block;
    width: 80px;
    background-color: #409eff;
    padding: 8px;
    color: white;
    vertical-align: middle;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: content-box;
  }

  .el-button {
    border: 1px solid white;
  }
}

.el-aside {
  border-radius: 5px 0 0 5px;

  .el-menu-item {
    width: 55px;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;

    span {
      display: inline-block;
      margin-top: -20px;
      font-size: 10px;
      margin-left: -5px;
    }
  }
}

.el-header {
  border-radius: 0 5px 5px 0;
}

.userName {
  width: 45px;
  height: 45px;
  background-color: #0076ff;
  color: white;
  margin: 10px 0 8px 8px;
  border-radius: 5px;
  text-align: center;

  >span {
    text-align: center;
    margin-top: 10px;
    display: inline-block;
    cursor: pointer;
  }
}

.el-menu {
  border: none;
}
</style>
<style>
.el-calendar-day {
  height: 40px !important;
}
</style>
